class uiFullscreen implements ng.IDirective {
    constructor(){}
    static instance():ng.IDirective{return new uiFullscreen;}
    templateUrl:string='<i class="fa fa-expand fa-fw text"></i><i class="fa fa-compress fa-fw text-active"></i>';
    restrict:string='AC';
    link($scope:string,elements:ng.IAugmentedJQuery,attrs:ng.IAttributes){

        //  elements.addClass('hide');
        //       uiLoad.load('vendor/libs/screenfull.min.js').then(function () {
        //           // disable on ie11
        //           if (screenfull.enabled && !navigator.userAgent.match(/Trident.*rv:11\./)) {
        //               elements.removeClass('hide');
        //           }
        //           elements.on('click', function () {
        //               var target;
        //               attr.target && (target = $(attr.target)[0]);
        //               screenfull.toggle(target);
        //           });
        //           $document.on(screenfull.raw.fullscreenchange, function () {
        //               if (screenfull.isFullscreen) {
        //                   elements.addClass('active');
        //               } else {
        //                   elements.removeClass('active');
        //               }
        //           });
        //       });

    }
    
}
angular.module('tms').directive('uiFullscreen', uiFullscreen.instance);